﻿using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Logging;
namespace NetCore2_1WeAPI
{
    class Program
    {
        static void Main(string[] args)
        {
            BuildWebHost(args).Run();
        }


        public static IWebHost BuildWebHost(string[] args) =>
            WebHost.CreateDefaultBuilder(args)
                .UseUrls("http://*:5014/")
                .UseStartup<Startup>()
                .UseKestrel()
                .ConfigureLogging(configure =>
                {
                    configure.AddFilter((logLevel) =>
                    {
                        return false;
                    });
                    //configure.Services.Clear();
                })
                .Build();
    }
}
